From c1c2ab0c6fd11fdb37bd5965d98ad43f34e5e6c5 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 14 Jul 2006 14:02:59 +0100 Subject: [PATCH] [HVM] Currently in xentrace, MMIO is handled just like other page faults. The tracing parameters are error code and the guest virtual address. However, if we are to analyze MMIO, tracing gpa makes more sense. This small pactch replaces the va with gpa when tracing MMIO. Signed-off-by: Qing He --- xen/arch/x86/hvm/vmx/vmx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index cc06e922c9..918d7c5587 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -811,6 +811,8 @@ static int vmx_do_page_fault(unsigned long va, struct cpu_user_regs *regs) return 1; } TRACE_VMEXIT (2,2); + /* in the case of MMIO, we are more interested in gpa than in va */ + TRACE_VMEXIT (4,gpa); handle_mmio(va, gpa); return 1; } -- 2.30.2